package com.jiang.books.service;

import com.jiang.books.domain.UserGroup;
import java.util.List;

public interface IUserGroupService {

    String FIND_ALL_CHILDEREN_QUERY =
            "select * from jiang_user_group"+
                    " connect by parent_id = prior id"+
                    " start with id = :id";

    public List<UserGroup> findAll();
    public UserGroup findById(Long id);
    public UserGroup save(UserGroup ugroup);
    public void delete(UserGroup ugroup);
    public List<UserGroup> findAllChilderenByNativeQuery(Long id);
    public List<UserGroup> findByGroupName (String groupName);
    
}